/*
 * @Title: ****
 * @Date: 2020-10-20 15:19:31
 * @FilePath: /vue-admin-template/src/services/modules/product.js
 */


import BaseServices from './../ajax';

export default class ProductServices {
  // 新增铲平
  static async ADD(params) {
    const result = await BaseServices.ajax({
      method: 'post',
      api: '/api/product/add',
      type: 'json',
      data: params
    });
    
    return result;
  }
  // 查询所有的产品列表
  static async GETLIST(params) {
    const result = await BaseServices.ajax({
      method: 'get',
      api: '/api/product/list',
      data: params
    });
    
    return result;
  }
  
}